<template>
	<router-view></router-view>
</template>
<script setup lang="ts">
window.addEventListener('hashchange', function () {
		window.location.reload()
})
</script>
<style lang="less">
:root {
	--van-checkbox-size: 15px !important;
	--van-radio-size: 15px !important;
	// --van-checkbox-checked-icon-color: @rok-mobile-primary-color !important;
}
html,
body {
	height: 100%;
	.van-popup.van-popup--right::-webkit-scrollbar {
		display: none;
	}
}
#app {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	overflow: hidden;
	background: @rok-mobile-bg-default-color;
}
.van-toast.van-popup {
	flex-direction: row;
	min-height: 40px;
	background: #ffffff;
	box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.15);
	border-radius: 17px;
	padding: 10px 16px;
	box-sizing: border-box;
	width: auto;
	word-break: keep-all;
	// white-space: nowrap;
	top: 70px;
	.van-toast__text {
		font-size: 14px;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		color: #1f2733;
		line-height: 20px;
		margin: 0;
		margin-left: 5px;
	}
}
.van-popup.van-popup--center.van-dialog {
	height: 170px;
	width: 100%;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	bottom: 0;
	left: 0;
	top: auto;
	transform: none;
	.van-dialog__header {
		font-family: 'PingFang SC';
		font-style: normal;
		font-weight: 500;
		font-size: 18px;
		line-height: 24px;
		text-align: center;
		color: #1f2329;
	}
	.van-dialog__content {
		font-family: 'PingFang SC';
		font-style: normal;
		font-weight: 400;
		font-size: 16px;
		line-height: 24px;
		text-align: center;
		color: #646a73;
	}
	.van-dialog__footer {
		justify-content: space-evenly;
		button {
			width: 165px;
			border-radius: 4px;
			overflow: hidden;
			flex: none;
		}
		button:first-child {
			background: #e8eaed;
			.van-button__text {
				font-family: 'PingFang SC';
				font-style: normal;
				font-weight: 500;
				font-size: 16px;
				line-height: 24px;
				text-align: center;
				color: #1f2329;
			}
		}
		button:last-child {
			background: #4c78fc;
			.van-button__text {
				font-family: 'PingFang SC';
				font-style: normal;
				font-weight: 500;
				font-size: 16px;
				line-height: 24px;
				text-align: center;
				color: #ffffff;
			}
		}
	}
	.van-loading__spinner.van-loading__spinner--circular {
		color: #fff;
	}
}
</style>
